<?php
$form = $this->beginWidget('bootstrap.widgets.TbActiveForm', array(
    'type' => 'vertical',
    'id' => 'form-ketquadauthau',
    'enableAjaxValidation' => false,
        ));
?>
<div id="group-tenduan" class="control-group">
    <label class="control-label" for="tenduan">Tên dự án</label>

    <div class="controls">
        <?php echo $form->textField($model, 'tenDuAn', array('id' => 'tenduan', 'class' => 'span12')) ?>
        <?php echo $form->error($model, 'tenDuAn', array('class' => 'error-message')); ?>
    </div>
</div>
<div id="group-tengoithau" class="control-group">
    <label class="control-label" for="tengoithau">Tên gói thầu</label>

    <div class="controls">
        <?php echo $form->textField($model, 'tenGoiThau', array('id' => 'tengoithau', 'class' => 'span12')) ?>
        <?php echo $form->error($model, 'tenGoiThau', array('class' => 'error-message')); ?>
    </div>
</div>
<div id="group-nguonvon" class="control-group">
    <label class="control-label" for="nguonvon">Nguồn vốn</label>

    <div class="controls">
        <?php echo $form->textField($model, 'nguonVon', array('id' => 'nguonvon', 'class' => 'span12')) ?>
        <?php echo $form->error($model, 'nguonVon', array('class' => 'error-message')); ?>
    </div>
</div>
<div id="group-benmoithau" class="control-group">
    <label class="control-label" for="benmoithau">Bên mời thầu</label>

    <div class="controls">
        <?php echo $form->textArea($model, 'benMoiThau', array('id' => 'benmoithau', 'class' => 'span12')) ?>
        <?php echo $form->error($model, 'benMoiThau', array('class' => 'error-message')); ?>
    </div>
</div>
<div id="group-hinhthucdauthau" class="control-group">
    <label class="control-label" for="hinhthucdauthau">Hình thức đấu thầu</label>

    <div class="controls">
        <?php echo $form->dropDownList($model, 'hinhThucDauThau', CHtml::listData(HinhThucDauThau::model()->findAll(), 'id', 'value'), array('id' => 'hinhthucdauthau', 'class' => 'span12')) ?>
        <?php echo $form->error($model, 'hinhThucDauThau', array('class' => 'error-message')); ?>
    </div>
</div>
<div id="group-phuongthucdauthau" class="control-group">
    <label class="control-label" for="phuongthucdauthau">Phương thức đấu thầu</label>

    <div class="controls">
        <?php echo $form->dropDownList($model, 'phuongThuc', CHtml::listData(PhuongThucDauThau::model()->findAll(), 'id', 'value'), array('id' => 'phuongthucdauthau', 'class' => 'span12')) ?>
        <?php echo $form->error($model, 'phuongThuc', array('class' => 'error-message')); ?>
    </div>
</div>
<div id="group-hinhthuchopdong" class="control-group">
    <label class="control-label" for="hinhthuchopdong">Hình thức hợp đồng</label>

    <div class="controls">
        <?php echo $form->dropDownList($model, 'hinhThucHopDong', CHtml::listData(HinhThucHopDong::model()->findAll(), 'id', 'value'), array('id' => 'hinhthuchopdong', 'class' => 'span12')) ?>
        <?php echo $form->error($model, 'hinhThucHopDong', array('class' => 'error-message')); ?>
    </div>
</div>
<div id="group-diadiem" class="control-group">
    <label class="control-label" for="diadiem">Địa điểm</label>

    <div class="controls">
        <?php echo $form->dropDownList($model, 'diaDiem', CHtml::listData(DiaDiem::model()->findAll(), 'id', 'value'), array('id' => 'diadiem', 'class' => 'span12')) ?>
        <?php echo $form->error($model, 'diaDiem', array('class' => 'error-message')); ?>
    </div>
</div>
<div id="group-thoigianthuchien" class="control-group">
    <label class="control-label" for="thoigianthuchien">Thời gian thực hiện</label>

    <div class="controls">
        <?php echo $form->textField($model, 'thoiGian', array('id' => 'thoigianthuchien', 'class' => 'span12')) ?>
        <?php echo $form->error($model, 'thoiGian', array('class' => 'error-message')); ?>
    </div>
</div>
<div id="group-nhathautrungthau" class="control-group">
    <label class="control-label" for="nhathautrungthau">Nhà thầu trúng thầu</label>

    <div class="controls">
        <?php echo $form->textField($model, 'nhaThauTrungThau', array('id' => 'nhathautrungthau', 'class' => 'span12')) ?>
        <?php echo $form->error($model, 'nhaThauTrungThau', array('class' => 'error-message')); ?>
    </div>
</div>
<div id="group-giagoithau" class="control-group">
    <label class="control-label" for="giagoithau">Giá gói thầu</label>

    <div class="controls">
        <?php echo $form->textField($model, 'giaGoiThau', array('id' => 'giagoithau', 'class' => 'span12')) ?>
        <?php echo $form->error($model, 'giaGoiThau', array('class' => 'error-message')); ?>
    </div>
</div>
<div id="group-giatrungthau" class="control-group">
    <label class="control-label" for="giatrungthau">Giá trúng thầu</label>

    <div class="controls">
        <?php echo $form->textField($model, 'giaTrungThau', array('id' => 'giatrungthau', 'class' => 'span12')) ?>
        <?php echo $form->error($model, 'giaTrungThau', array('class' => 'error-message')); ?>
    </div>
</div>
<div id="group-quyetdinh" class="control-group">
    <label class="control-label" for="quyetdinh">Quyết định phê duyệt kết quả</label>

    <div class="controls">
        <?php echo $form->textArea($model, 'quyetDinh', array('id' => 'quyetdinh', 'class' => 'span12')) ?>
        <?php echo $form->error($model, 'quyetDinh', array('class' => 'error-message')); ?>
    </div>
</div>
<div id="group-ngayxuatban" class="control-group">
    <label class="control-label" for="ngayxuatban">Ngày xuất bản</label>

    <div class="controls">
        <?php
        $this->widget('bootstrap.widgets.TbDatePicker', array(
            'model' => $model,
            'attribute' => 'ngayXuatBan'
                )
        );
        ?>
        <?php echo $form->error($model, 'ngayXuatBan', array('class' => 'error-message')); ?>
    </div>
</div>
<div id="group-sobaodang" class="control-group">
    <label class="control-label" for="sobaodang">Số báo đăng</label>

    <div class="controls">
        <?php echo $form->textField($model, 'soBaoDang', array('id' => 'sobaodang', 'class' => 'span12')) ?>
        <?php echo $form->error($model, 'soBaoDang', array('class' => 'error-message')); ?>
    </div>
</div>
<div id="group-tinhtrang" class="control-group">
    <label class="control-label" for="tinhtrang">Tình trạng thông tin</label>

    <div class="controls">
        <?php echo $form->textArea($model, 'tinhTrang', array('id' => 'tinhtrang', 'class' => 'span12')) ?>
        <?php echo $form->error($model, 'tinhTrang', array('class' => 'error-message')); ?>
    </div>
</div>
<div id="group-mathongtin" class="control-group">
    <label class="control-label" for="mathongtin">Mã thông tin</label>

    <div class="controls">
        <?php echo $form->textField($model, 'maThongTin', array('id' => 'mathongtin', 'class' => 'span12')) ?>
        <?php echo $form->error($model, 'maThongTin', array('class' => 'error-message')); ?>
    </div>
</div>
<div class="form-actions">
    <button id="save-user" type="submit" class="btn btn-primary">Lưu</button>
    <a id="all-user" href="<?php echo $this->createUrl('user/index') ?>" class="btn btn-default">Quay lại danh sách</a>
</div>
<?php $this->endWidget(); ?>